package huawei_nowcoder;

import java.util.Scanner;

/**
 * @order  9
 * @decription 提取不重复数字
 */
public class NoRepeatNumber {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        //n放到数组中
        int n=scanner.nextInt();
        int[] ints=new int[32];
        int i=0;
        while (n>10){
//            System.out.println(i+"次n为"+n);
            ints[i]=n%10;
//            System.out.println("数组第"+i+"位为"+ints[i]);
            n/=10;
            i++;
        }
//        System.out.println(i+"次n为"+n);
        ints[i]=n;
//        System.out.println("数组第"+i+"位为"+ints[i]);


        StringBuffer stringBuffer=new StringBuffer();
        //输出
        int[] temp=new int[i+1];
        for (int j = 0; j < i+1; j++) {

//            System.out.println("数组第"+j+"位为"+temp[j]);
            Boolean flag=true;
            for (int k = 0; k < i+1; k++) {
                if (ints[j]==temp[k]){
                    flag=false;
                }
            }
            temp[j]=ints[j];
            if (flag) {
                stringBuffer.append(ints[j]);
//                System.out.println(ints[j]);
            }
        }
        System.out.println(Integer.valueOf(stringBuffer.toString()));
    }
}
